#ifndef GEM_CLIENT_H
#define GEM_CLIENT_H

#include "GemColour.h"

#include <SFML/Graphics.hpp>
#include <SFML/Network.hpp>

class GemClient {
public :
	sf::Texture gemTexture;
	sf::Vector2f textureSequence[4];

	sf::Sprite sprite;
	sf::Vector2f position;
	GemColour colour;
	int points;
	bool picked;

	int sequence;
	sf::Time vitesseMove;
	sf::Time time;
	sf::Clock chronoTime;

	GemClient(GemColour col);
	void draw(sf::RenderWindow& w);
	void incSequence();
	void receive(sf::TcpSocket& socket);
	void animation();
};

#endif